{%extends "base.html"%}
{%block body%}
<h2>Payment for <br/>"{{race.name|escape}} {{race.distance_in_miles|escape}} miles {{race.date|escape}} {{race.time|escape}} {{race.location|escape}}"</h2>

{% ifnotequal race.website  '' %}
<p>Event Website: <a href="{{race.website|escape}}">{{race.website|escape}}</a></p>
{% endifnotequal %}

<!-- -->
{% ifequal race.payment_company  'Paypal' %}
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="{{race.payment_company_id}}">
<input type="hidden" name="no_shipping" value="1">

<table>
<tr> <td align="left"><b>Pay via Pay Pal
for the event:</b><br/>
<br/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" 
      name="submit" alt="Make payments with payPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="item_name" value="{{race.name|escape}} {{race.distance_in_miles|escape}} miles {{race.date|escape}} {{race.time|escape}} {{race.location|escape}}">{{race.name|escape}} {{race.distance_in_miles|escape}} miles {{race.date|escape}} {{race.time|escape}} {{race.location|escape}}
<input type="hidden" name="amount" value="{{race.early_registration_member_price}}">
</tr>
</table>

<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="IC_Sample">
</form>
{% endifequal %}

<!--
{% ifequal race.payment_company  'Google Checkout' %}
<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/{{race.payment_company_id}}/diagnose" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
	<input name="item_name_1" type="hidden" value="{{race.name|escape}} {{race.distance_in_miles|escape}} miles {{race.date|escape}} {{race.time|escape}} {{race.location|escape}}"/>
	<input name="item_description_1" type="hidden" value="{{race.comments|escape}}"/>
    <input name="item_quantity_1" type="hidden" value="1"/>
	<input name="item_price_1" type="hidden" value="{{race.early_registration_member_price}}"/>
    <input name="item_currency_1" type="hidden" value="USD"/>
    <input name="_charset_" type="hidden" value="utf-8"/>
	<br/><input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id={{race.payment_company_id}}&amp;w=121&amp;h=44&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
</form>
{% endifequal %}
-->
{% ifequal race.payment_company  'Google Checkout' %}
<b>Select the appropriate link below to continue to payment page:</b><br/>
<a href="http://wsxnyc.org/results-1.0-SNAPSHOT/results/results/checkout/move_shopping_cart.jsp?button=move_AddItemDigital&instructions={{race.brief_message_to_buyer_about_delivery}}&itemDescription=Early+registration+member+price&itemName={{race.name|escape}}&itemPrice={{race.early_registration_member_price}}&itemQuantity=1">${{race.early_registration_member_price}} - Early registration member price</a><br/>
<a href="http://wsxnyc.org/results-1.0-SNAPSHOT/results/results/checkout/move_shopping_cart.jsp?button=move_AddItemDigital&instructions={{race.brief_message_to_buyer_about_delivery}}&itemDescription=Early+registration+nonmember+price&itemName={{race.name|escape}}&itemPrice={{race.early_registration_nonmember_price}}&itemQuantity=1">${{race.early_registration_nonmember_price}} - Early registration nonmember price</a><br/>
<a href="http://wsxnyc.org/results-1.0-SNAPSHOT/results/results/checkout/move_shopping_cart.jsp?button=move_AddItemDigital&instructions={{race.brief_message_to_buyer_about_delivery}}&itemDescription=Late+registration+member+price&itemName={{race.name|escape}}&itemPrice={{race.late_registration_member_price}}&itemQuantity=1">${{race.late_registration_member_price}} - Late registration member price</a><br/>
<a href="http://wsxnyc.org/results-1.0-SNAPSHOT/results/results/checkout/move_shopping_cart.jsp?button=move_AddItemDigital&instructions={{race.brief_message_to_buyer_about_delivery}}&itemDescription=Late+registration+nonmember+price&itemName={{race.name|escape}}&itemPrice={{race.late_registration_nonmember_price}}&itemQuantity=1">${{race.late_registration_nonmember_price}} - Late registration nonmember price</a><br/>
{% endifequal %}


{%endblock%}
